/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TelaPrincipal.java
 *
 * Created on 27/04/2010, 15:50:55
 */

package fronteira;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;

/**
 *
 * @author Mateus
 */
public class TelaPrincipal extends javax.swing.JFrame {

    /** Creates new form TelaPrincipal */
    public TelaPrincipal() {
        this.getContentPane().setBackground(Color.WHITE);
        
        initComponents();
    }

    public Dimension telaCheia (){  
        return (new Dimension (
            (int) Toolkit.getDefaultToolkit().getScreenSize().getWidth(),
            (int) Toolkit.getDefaultToolkit().getScreenSize().getHeight()-40)
        );
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        atalho_cadastrar_usuario = new javax.swing.JButton();
        atalho_cadastrar_cliente = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        atalho_vendas = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jButton4 = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        desktop = new javax.swing.JDesktopPane();
        Menu = new javax.swing.JMenuBar();
        menu_cadastrar = new javax.swing.JMenu();
        menu_cadastrar_cliente = new javax.swing.JMenuItem();
        menu_cadastrar_usuario = new javax.swing.JMenuItem();
        menu_cadastrar_produtos = new javax.swing.JMenuItem();
        menu_alterar = new javax.swing.JMenu();
        menu_alterar_cliente = new javax.swing.JMenuItem();
        menu_alterar_usuario = new javax.swing.JMenuItem();
        menu_alterar_produtos = new javax.swing.JMenuItem();
        menu_alterar1 = new javax.swing.JMenu();
        menu_excluir_cliente1 = new javax.swing.JMenuItem();
        menu_excluir_usuario = new javax.swing.JMenuItem();
        menu_excluir_produtos1 = new javax.swing.JMenuItem();
        menu_pesquisar = new javax.swing.JMenu();
        menu_pesquisar_cliente = new javax.swing.JMenuItem();
        menu_pesquisar_funcionario = new javax.swing.JMenuItem();
        menu_pesquisar_produtos = new javax.swing.JMenuItem();
        menu_caixa = new javax.swing.JMenu();
        menu_vendas_caixa = new javax.swing.JMenuItem();
        menu_relatorios = new javax.swing.JMenu();
        menu_relatorio_estoque = new javax.swing.JMenuItem();
        menu_relatorio_vendas = new javax.swing.JMenuItem();
        menu_info = new javax.swing.JMenu();
        menu_info_versao = new javax.swing.JMenuItem();
        menu_info_creditos = new javax.swing.JMenuItem();
        menu_sair = new javax.swing.JMenu();
        menu_sair_sair = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("U N I F A R M A");

        jPanel1.setBackground(new java.awt.Color(153, 204, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));

        atalho_cadastrar_usuario.setBackground(new java.awt.Color(255, 255, 255));
        atalho_cadastrar_usuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/32x32/funcionario.png"))); // NOI18N
        atalho_cadastrar_usuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                atalho_cadastrar_usuarioActionPerformed(evt);
            }
        });

        atalho_cadastrar_cliente.setBackground(new java.awt.Color(255, 255, 255));
        atalho_cadastrar_cliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/32x32/cliente.png"))); // NOI18N
        atalho_cadastrar_cliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                atalho_cadastrar_clienteActionPerformed(evt);
            }
        });

        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("Cliente");

        jLabel3.setText("Funcionário");

        atalho_vendas.setBackground(new java.awt.Color(255, 255, 255));
        atalho_vendas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/32x32/vendas.png"))); // NOI18N
        atalho_vendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                atalho_vendasActionPerformed(evt);
            }
        });

        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel4.setText("Vendas");

        jButton4.setBackground(new java.awt.Color(255, 255, 255));
        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/produto_32x32.png"))); // NOI18N
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel5.setText("Produtos");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(atalho_cadastrar_cliente, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(28, 28, 28)
                        .addComponent(atalho_cadastrar_usuario, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(32, 32, 32))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(jLabel3)
                        .addGap(33, 33, 33)))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 51, Short.MAX_VALUE))
                .addGap(30, 30, 30)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(atalho_vendas, javax.swing.GroupLayout.PREFERRED_SIZE, 51, Short.MAX_VALUE))
                .addGap(314, 314, 314))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(atalho_cadastrar_usuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(atalho_vendas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(atalho_cadastrar_cliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel3)
                        .addComponent(jLabel2)
                        .addComponent(jLabel5))
                    .addComponent(jLabel4))
                .addContainerGap())
        );

        menu_cadastrar.setText("Cadastrar");
        menu_cadastrar.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_cadastrar.setHideActionText(true);

        menu_cadastrar_cliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/cliente.png"))); // NOI18N
        menu_cadastrar_cliente.setText("Cliente");
        menu_cadastrar_cliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastrar_clienteActionPerformed(evt);
            }
        });
        menu_cadastrar.add(menu_cadastrar_cliente);

        menu_cadastrar_usuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/funcionario.png"))); // NOI18N
        menu_cadastrar_usuario.setText("Usuário");
        menu_cadastrar_usuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastrar_usuarioActionPerformed(evt);
            }
        });
        menu_cadastrar.add(menu_cadastrar_usuario);

        menu_cadastrar_produtos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/creaditos.png"))); // NOI18N
        menu_cadastrar_produtos.setText("Produtos");
        menu_cadastrar_produtos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastrar_produtosActionPerformed(evt);
            }
        });
        menu_cadastrar.add(menu_cadastrar_produtos);

        Menu.add(menu_cadastrar);

        menu_alterar.setText("Editar");
        menu_alterar.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_alterar.setHideActionText(true);

        menu_alterar_cliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/cliente.png"))); // NOI18N
        menu_alterar_cliente.setText("Cliente");
        menu_alterar_cliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_alterar_clienteActionPerformed(evt);
            }
        });
        menu_alterar.add(menu_alterar_cliente);

        menu_alterar_usuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/funcionario.png"))); // NOI18N
        menu_alterar_usuario.setText("Usuário");
        menu_alterar_usuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_alterar_usuarioActionPerformed(evt);
            }
        });
        menu_alterar.add(menu_alterar_usuario);

        menu_alterar_produtos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/creaditos.png"))); // NOI18N
        menu_alterar_produtos.setText("Produtos");
        menu_alterar_produtos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_alterar_produtosActionPerformed(evt);
            }
        });
        menu_alterar.add(menu_alterar_produtos);

        Menu.add(menu_alterar);

        menu_alterar1.setText("Excluir");
        menu_alterar1.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_alterar1.setHideActionText(true);

        menu_excluir_cliente1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/cliente.png"))); // NOI18N
        menu_excluir_cliente1.setText("Cliente");
        menu_excluir_cliente1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_excluir_cliente1ActionPerformed(evt);
            }
        });
        menu_alterar1.add(menu_excluir_cliente1);

        menu_excluir_usuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/funcionario.png"))); // NOI18N
        menu_excluir_usuario.setText("Usuário");
        menu_excluir_usuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_excluir_usuarioActionPerformed(evt);
            }
        });
        menu_alterar1.add(menu_excluir_usuario);

        menu_excluir_produtos1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/creaditos.png"))); // NOI18N
        menu_excluir_produtos1.setText("Produtos");
        menu_excluir_produtos1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_excluir_produtos1ActionPerformed(evt);
            }
        });
        menu_alterar1.add(menu_excluir_produtos1);

        Menu.add(menu_alterar1);

        menu_pesquisar.setText("Pesquisar");
        menu_pesquisar.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_pesquisar.setHideActionText(true);

        menu_pesquisar_cliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/cliente.png"))); // NOI18N
        menu_pesquisar_cliente.setText("Clientes");
        menu_pesquisar.add(menu_pesquisar_cliente);

        menu_pesquisar_funcionario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/funcionario.png"))); // NOI18N
        menu_pesquisar_funcionario.setText("Usuário");
        menu_pesquisar.add(menu_pesquisar_funcionario);

        menu_pesquisar_produtos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/creaditos.png"))); // NOI18N
        menu_pesquisar_produtos.setText("Produtos");
        menu_pesquisar.add(menu_pesquisar_produtos);

        Menu.add(menu_pesquisar);

        menu_caixa.setText("Vendas");
        menu_caixa.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_caixa.setHideActionText(true);

        menu_vendas_caixa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/vendas.png"))); // NOI18N
        menu_vendas_caixa.setText("Vendas");
        menu_vendas_caixa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_vendas_caixaActionPerformed(evt);
            }
        });
        menu_caixa.add(menu_vendas_caixa);

        Menu.add(menu_caixa);

        menu_relatorios.setText("Relatórios");
        menu_relatorios.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_relatorios.setHideActionText(true);

        menu_relatorio_estoque.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/relatorio.png"))); // NOI18N
        menu_relatorio_estoque.setText("Relatório de Produtos em Estoque");
        menu_relatorio_estoque.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_relatorio_estoqueActionPerformed(evt);
            }
        });
        menu_relatorios.add(menu_relatorio_estoque);

        menu_relatorio_vendas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/relatorio.png"))); // NOI18N
        menu_relatorio_vendas.setText("Relatório de Vendas");
        menu_relatorio_vendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_relatorio_vendasActionPerformed(evt);
            }
        });
        menu_relatorios.add(menu_relatorio_vendas);

        Menu.add(menu_relatorios);

        menu_info.setBackground(new java.awt.Color(204, 255, 204));
        menu_info.setText("Info");
        menu_info.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_info.setHideActionText(true);

        menu_info_versao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/versao.png"))); // NOI18N
        menu_info_versao.setText("Versão");
        menu_info_versao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_info_versaoActionPerformed(evt);
            }
        });
        menu_info.add(menu_info_versao);

        menu_info_creditos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/versao.png"))); // NOI18N
        menu_info_creditos.setText("Créditos");
        menu_info_creditos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_info_creditosActionPerformed(evt);
            }
        });
        menu_info.add(menu_info_creditos);

        Menu.add(menu_info);

        menu_sair.setText("Sair");
        menu_sair.setFont(new java.awt.Font("Verdana", 1, 13));
        menu_sair.setHideActionText(true);

        menu_sair_sair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/16x16/excluir.png"))); // NOI18N
        menu_sair_sair.setText("Sair");
        menu_sair_sair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_sair_sairActionPerformed(evt);
            }
        });
        menu_sair.add(menu_sair_sair);

        Menu.add(menu_sair);

        setJMenuBar(Menu);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktop, javax.swing.GroupLayout.DEFAULT_SIZE, 618, Short.MAX_VALUE)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 618, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(desktop, javax.swing.GroupLayout.PREFERRED_SIZE, 668, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void menu_sair_sairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_sair_sairActionPerformed
        // TODO add your handling code here:
        System.exit(0);
}//GEN-LAST:event_menu_sair_sairActionPerformed

    private void atalho_cadastrar_clienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_atalho_cadastrar_clienteActionPerformed
        // TODO add your handling code here:
        TelaCadastrarCliente c = new TelaCadastrarCliente();
        desktop.add(c);
        c.setVisible(true);
    }//GEN-LAST:event_atalho_cadastrar_clienteActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_jButton4ActionPerformed

    private void menu_cadastrar_clienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastrar_clienteActionPerformed
        // TODO add your handling code here:
        TelaCadastrarCliente cliente = new TelaCadastrarCliente();
        desktop.add(cliente);
        cliente.setVisible(true);
    }//GEN-LAST:event_menu_cadastrar_clienteActionPerformed

    private void menu_cadastrar_usuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastrar_usuarioActionPerformed
        // TODO add your handling code here:
        TelaCadastrarUsuario usuario = new TelaCadastrarUsuario();
        desktop.add(usuario);
        usuario.setVisible(true);
    }//GEN-LAST:event_menu_cadastrar_usuarioActionPerformed

    private void atalho_cadastrar_usuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_atalho_cadastrar_usuarioActionPerformed
        // TODO add your handling code here:
        TelaCadastrarUsuario usuario = new TelaCadastrarUsuario();
        desktop.add(usuario);
        usuario.setVisible(true);
    }//GEN-LAST:event_atalho_cadastrar_usuarioActionPerformed

    private void menu_alterar_clienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_alterar_clienteActionPerformed
        // TODO add your handling code here:
        TelaEditarCliente cliente = new TelaEditarCliente();
        desktop.add(cliente);
        cliente.setVisible(true);
    }//GEN-LAST:event_menu_alterar_clienteActionPerformed

    private void menu_excluir_cliente1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_excluir_cliente1ActionPerformed
        // TODO add your handling code here:
        TelaExcluirCliente cliente = new TelaExcluirCliente();
        desktop.add(cliente);
        cliente.setVisible(true);
    }//GEN-LAST:event_menu_excluir_cliente1ActionPerformed

    private void menu_alterar_usuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_alterar_usuarioActionPerformed
        // TODO add your handling code here:
        TelaEditarUsuario usuario = new TelaEditarUsuario();
        desktop.add(usuario);
        usuario.setVisible(true);
    }//GEN-LAST:event_menu_alterar_usuarioActionPerformed

    private void menu_excluir_usuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_excluir_usuarioActionPerformed
        // TODO add your handling code here:
        TelaExcluirUsuario usuario = new TelaExcluirUsuario();
        desktop.add(usuario);
        usuario.setVisible(true);
    }//GEN-LAST:event_menu_excluir_usuarioActionPerformed

    private void atalho_vendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_atalho_vendasActionPerformed
        // TODO add your handling code here:
        TelaVendas vendas = new TelaVendas();
        desktop.add(vendas);
        vendas.setVisible(true);
    }//GEN-LAST:event_atalho_vendasActionPerformed

    private void menu_vendas_caixaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_vendas_caixaActionPerformed
        // TODO add your handling code here:
        TelaVendas vendas = new TelaVendas();
        desktop.add(vendas);
        vendas.setVisible(true);
    }//GEN-LAST:event_menu_vendas_caixaActionPerformed

    private void menu_info_versaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_info_versaoActionPerformed
        // TODO add your handling code here:
        TelaVersao versao = new TelaVersao();
        desktop.add(versao);
        versao.setVisible(true);
    }//GEN-LAST:event_menu_info_versaoActionPerformed

    private void menu_info_creditosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_info_creditosActionPerformed
        // TODO add your handling code here:
        TelaCreditos creditos = new TelaCreditos();
        desktop.add(creditos);
        creditos.setVisible(true);
    }//GEN-LAST:event_menu_info_creditosActionPerformed

    private void menu_relatorio_estoqueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_relatorio_estoqueActionPerformed
        // TODO add your handling code here:
        TelaRelatorioEstoque relatorio_estoque = new TelaRelatorioEstoque();
        desktop.add(relatorio_estoque);
        relatorio_estoque.setVisible(true);
    }//GEN-LAST:event_menu_relatorio_estoqueActionPerformed

    private void menu_relatorio_vendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_relatorio_vendasActionPerformed
        // TODO add your handling code here:
        TelaRelatorioVendas relatorio_vendas = new TelaRelatorioVendas();
        desktop.add(relatorio_vendas);
        relatorio_vendas.setVisible(true);
    }//GEN-LAST:event_menu_relatorio_vendasActionPerformed

    private void menu_cadastrar_produtosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastrar_produtosActionPerformed
        // TODO add your handling code here:
        TelaCadastrarProduto produto = new TelaCadastrarProduto();
        desktop.add(produto);
        produto.setVisible(true);
    }//GEN-LAST:event_menu_cadastrar_produtosActionPerformed

    private void menu_alterar_produtosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_alterar_produtosActionPerformed
        // TODO add your handling code here:
        TelaEditarProduto produto = new TelaEditarProduto();
        desktop.add(produto);
        produto.setVisible(true);
    }//GEN-LAST:event_menu_alterar_produtosActionPerformed

    private void menu_excluir_produtos1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_excluir_produtos1ActionPerformed
        // TODO add your handling code here:
        TelaExcluirProduto produto = new TelaExcluirProduto();
        desktop.add(produto);
        produto.setVisible(true);
    }//GEN-LAST:event_menu_excluir_produtos1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar Menu;
    private javax.swing.JButton atalho_cadastrar_cliente;
    private javax.swing.JButton atalho_cadastrar_usuario;
    private javax.swing.JButton atalho_vendas;
    public static javax.swing.JDesktopPane desktop;
    private javax.swing.JButton jButton4;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JMenu menu_alterar;
    private javax.swing.JMenu menu_alterar1;
    private javax.swing.JMenuItem menu_alterar_cliente;
    private javax.swing.JMenuItem menu_alterar_produtos;
    private javax.swing.JMenuItem menu_alterar_usuario;
    private javax.swing.JMenu menu_cadastrar;
    private javax.swing.JMenuItem menu_cadastrar_cliente;
    private javax.swing.JMenuItem menu_cadastrar_produtos;
    private javax.swing.JMenuItem menu_cadastrar_usuario;
    private javax.swing.JMenu menu_caixa;
    private javax.swing.JMenuItem menu_excluir_cliente1;
    private javax.swing.JMenuItem menu_excluir_produtos1;
    private javax.swing.JMenuItem menu_excluir_usuario;
    private javax.swing.JMenu menu_info;
    private javax.swing.JMenuItem menu_info_creditos;
    private javax.swing.JMenuItem menu_info_versao;
    private javax.swing.JMenu menu_pesquisar;
    private javax.swing.JMenuItem menu_pesquisar_cliente;
    private javax.swing.JMenuItem menu_pesquisar_funcionario;
    private javax.swing.JMenuItem menu_pesquisar_produtos;
    private javax.swing.JMenuItem menu_relatorio_estoque;
    private javax.swing.JMenuItem menu_relatorio_vendas;
    private javax.swing.JMenu menu_relatorios;
    private javax.swing.JMenu menu_sair;
    private javax.swing.JMenuItem menu_sair_sair;
    private javax.swing.JMenuItem menu_vendas_caixa;
    // End of variables declaration//GEN-END:variables

}
